<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>TP后台管理页面</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css">
	<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
	<script type="text/javascript">
		function setSize(){
			var pwidth = $(window).width()
			var leftwidth = $('.l').width()
			var pheight =$(window).height()
			var headheight = $('.header').height()
			$('#main').css('width',pwidth-leftwidth-'5'+'px')
			$('#main').css('height',pheight-headheight+'px')
			$('.l').css('height',pheight-headheight+'px')
		}
$(function(){
	setSize();
	$(window).resize(function(){
		setSize()
	})
	setInterval(setSize,100)
})
	</script>
</head>
<body>
	<div class="header">
		<p>TP后台管理</p>	
	</div>
	<div class="content">
		<div class="l">
			<h3>分类</h3>
			<a href="{:U('Admin/Type/add')}" target="main">添加</a>
			<a href="{:U('Admin/Type/lister')}" target="main">管理</a>
			<h3>产品</h3>
			<a href="{:U('Admin/Product/add')}" target="main">添加</a>
			<a href="{:U('Admin/Product/oper')}" target="main">管理</a>
		</div>
		<div class="r">
			<iframe name="main" id="main" src="{:U('Admin/Index/welcome')}"/>
		</div>
	</div>
	
</body>
</html>